﻿<Window x:Class="FolderView.Plugin.FolderExplorerWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        
        xmlns:y="clr-namespace:BrainTechLLC.FolderExplorer;assembly=BrainTechLLC.FolderExplorer"        
        Closing="Window_Closing"
        Title="Folder Explorer">
    <!--<Window.CommandBindings>
        <CommandBinding Command="{x:Static y:DirectoriesView.AddDirCommand}" Executed="AddDir_Executed"/>
        <CommandBinding Command="{x:Static y:DirectoriesView.RemoveDirCommand}" Executed="RemoveDir_Executed"/>
    </Window.CommandBindings>-->
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="24"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid>
                <Menu x:Name="settingsMenu" Height="22" VerticalAlignment="Top" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left">
                    <MenuItem Header="_Settings">
                        <MenuItem Header="_Font Size">
                            <TextBox Text="{Binding Mode=TwoWay, Path=TextSize}"/>
                        </MenuItem>
                        <MenuItem Header="Always on _Top" IsCheckable="True" IsChecked="{Binding Mode=TwoWay, Path=AlwaysOnTop}" />                            
                    </MenuItem>
                </Menu>
                <Grid x:Name="gridTop" Height="Auto" VerticalAlignment="Top" Margin="0,22,0,0">
                    <WrapPanel Orientation="Horizontal" Margin="2,0,0,0">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                            <TextBlock Text="Select Special Folder: " VerticalAlignment="Center" />
                            <ComboBox Width="200" x:Name="cboFolders" SelectionChanged="cboFolders_SelectionChanged" HorizontalAlignment="Left" />
                            <TextBlock Text=" "/>
                            <TextBlock Text="{Binding Path=CurrentWork, Mode=OneWay}"/>
                            <TextBlock Text="  "/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <CheckBox x:Name="chkShowFolderAndFiles" Content="Show Files and Folders" Checked="chkShowFolderAndFiles_Checked" Unchecked="chkShowFolderAndFiles_Unchecked" VerticalAlignment="Center" />
                            <TextBlock Text="  "/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="Search: " VerticalAlignment="Center" />
                            <TextBox Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" x:Name="txtSearch" MinWidth="140" TextChanged="txtSearch_TextChanged"/>
                        </StackPanel>
                    </WrapPanel >
                </Grid>
            </Grid>
        </Grid>
        <Grid Grid.Row="1">
            <y:FolderExplorerControl x:Name="folderExplorer" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" NoSizes="True"                                     
                                     SelectFoldersStart="OperationHandler_SelectFoldersStart"
                                     SelectFoldersEnd="OperationHandler_SelectFoldersEnd"
                                     />
        </Grid>
        <Grid Grid.Row="2">
            <Button Content="Select Folders" x:Name="btnSelectFolders" Click="btnSelectFolders_Click"/>
        </Grid>
    </Grid>
</Window>
